package org.dyk.seamanshousefrontdesk.service.orders;

import org.dyk.seamanshousefrontdesk.model.Orders;

import java.util.List;

public interface OrdersService {
    //根据 主键 获取订单信息
    public Orders findByOid(int oid);

    //根据用户ID获取相应订单信息
    public List<Orders> findAllByUid(int uid);

    //确认收货操作
    public boolean updata(int oid);

    //支付完成操作
    public boolean payOut(int out_trade_no);

    //添加订单
    public boolean insert(int cid,
                          int uid,
                          int quantity,
                          int price,
                          String consignee,
                          String phone,
                          String address);
}
